package interfaces.ltu;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Queue;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class AndroidInterfaceActivity extends Activity {
	
	 public static HashSet<String> courseNos = new HashSet<String>();
	 //public static Queue<String> courseLists= new LinkedList<String>() ;
	 public static List<String> courseLists =new ArrayList<String>();
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        /* Get the return-Button from the XML-file. */
        Button scheduleButton = (Button)this.findViewById(R.id.scheduleButton);
        /* Make that Button handle clicks to itself. */ 
        scheduleButton.setOnClickListener(new OnClickListener(){
		
		public void onClick(View view) {
			 Intent myIntent = new Intent(view.getContext(), ScheduleActivity.class);
             startActivityForResult(myIntent, 0);
		}
        });
    
    
    Button NearestButton = (Button)this.findViewById(R.id.secondButton);
    NearestButton.setOnClickListener(new OnClickListener(){
	
	public void onClick(View view) {
		 Intent myIntent = new Intent(view.getContext(), NearestButtonActivity.class);
         startActivityForResult(myIntent, 0);
         
	}
    });
    
    Button displayLocationButton = (Button)this.findViewById(R.id.displaylocation_button);
    displayLocationButton.setOnClickListener(new OnClickListener(){
    
	public void onClick(View view) {
		 Intent myIntent = new Intent(view.getContext(), DisplayLocationActivity.class);
         startActivityForResult(myIntent, 0);
	}
    });
    
    Button lastButton = (Button)this.findViewById(R.id.last_button);
    lastButton.setOnClickListener(new OnClickListener(){
	
	public void onClick(View view) {
		finish();
		 /*Intent myIntent = new Intent(view.getContext(), LastButtonActivity.class);
         startActivityForResult(myIntent, 0);*/
	}
    });
}
    
}